import { createRouter, createWebHistory } from 'vue-router'

import Home from './MyHome.vue'
import Login from './MyLogin.vue'
import user from './user/MyUserDetail.vue'
const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', redirect: '/login' },
    { path: '/login', component: Login },
    {
      path: '/home',
      component: Home,
      children: [{ { path: 'goods', component: Login },}],
    },
  ],
})
export default router
